﻿@using System.Web.Script.Serialization
@model PhoneBook.Models.Contacts.ContactAddOrEditModel
@{
}




<!-- ko foreach: Phones -->
<div>
    
<select data-bind="options: $root.AvailablePhoneTypes, value: SelectedPhoneType"></select>
<input type="text" data-bind="value:PhoneNumber" />
    <a data-bind="click:$root.DelPhone">删除</a>
    <a data-bind="click:$root.AddPhone">添加</a>
</div>
<!-- /ko -->






<!-- ko if: ContactSaved -->
<p>

    <input type="button" value="保存" id="saveBtn" data-bind="click:SaveContact" />
</p>
<!-- /ko -->
